package com.hafu.model;

import java.util.List;

public class Course {
    private String courseId;       // 课程ID
    private String courseName;     // 课程名称
    private String teacherId;      // 教师ID
    private String status;         // 状态（草稿/待审核/已发布/已下架）
    private List<Chapter> chapters; // 章节列表
    private int credits;
    private int hours;
    private String createTime;

    // 构造方法
    public Course(String courseId, String courseName, String teacherId) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.teacherId = teacherId;
        this.status = "草稿"; // 默认状态
    }

    public Course(String courseId, String courseName, String teacherId, int credits, int hours, String status, String createTime) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.teacherId = teacherId;
        this.credits = credits;
        this.hours = hours;
        this.status = status;
        this.createTime = createTime;
    }

    public String getCourseId() {
        return courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public String getTeacherId() {
        return teacherId;
    }

    public int getCredits() {
        return credits;
    }

    public int getHours() {
        return hours;
    }

    public String getStatus() {
        return status;
    }

    public String getCreateTime() {
        return createTime;
    }

    public Object getEnrolledCount() {
        return null;
    }

    // Getter/Setter方法（省略）
}